<template>
	<view>
		<uni-popup ref="dialogs" :mask-click="false" :is-mask-click="false" type="center">
			<view class="dialogs">
				<text class="title">{{dialogs.extField}}</text>
				<image class="icon" :src="dialogs.extField2" mode="scaleToFill"></image>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import http from "@/common/http.js"
	
	export default {
		name: "popup2",
		data() {
			return {
				dialogs: {},

			};
		},
		created() {
			http.request({
				url: '/api/v1/getSysDic',
				data: {
					key: 'dialogs'
				},
				success: ret => {
					if (ret[0] && ret[0].extField2) {
						this.dialogs = ret[0];
						this.$refs.dialogs.open('center');
					}

					console.log(ret)
				}
			})
		}
	}
</script>

<style lang="scss">
	.dialogs {
		background-color: #fff;
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;
		padding: 45rpx;
		width: 660rpx;
		box-sizing: border-box;
		border-radius: 10rpx;

		.title {
			color: #000000;
			margin-bottom: 24rpx;
			font-size: 20px;
			line-height: 1.5em;
		}

		.icon {
			width: 400rpx;
			height: 400rpx;
			border-radius: 10rpx;
		}
	}
</style>
